import request from "@/utils/request";

// 获取菜单列表的 api
export const asyncGetPermissionList = () => request.get(`/admin/acl/permission`);

// 添加菜单的 api
export const asyncAddPermission = (data) => request.post(`/admin/acl/permission/save`, data);

// 修改菜单的 api
export const asyncUpDataPermission = (data) => request.put(`/admin/acl/permission/update`, data);

// 删除菜单的 api
export const asyncDeletePermission = (id) => request.delete(`/admin/acl/permission/remove/${id}`);